import { h } from 'vue';
import { NAvatar } from 'naive-ui';
import { BasicColumn } from '@/components/Table';
export interface ListData {
  userId: number;
  userName: string;
  gender: string;
  avatar: string;
  projectName: string;
  groupName: string;
  status: string;
  rlsTime: string;
}
export const columns: BasicColumn<ListData>[] = [
  {
    type: 'selection',
  },
  {
    title: '用户ID',
    key: 'userId',
    width: 80,
  },
  {
    title: '姓名',
    key: 'userName',
    width: 80,
  },
  {
    title: '性别',
    key: 'gender',
    width: 80,
  },
  {
    title: '头像',
    key: 'avatar',
    width: 80,
    render(row) {
      return h(NAvatar, {
        size: 48,
        src: row.avatar,
      });
    },
  },
  {
    title: '项目名称',
    key: 'projectName',
    width: 180,
  },
  {
    title: '班组名称',
    key: 'groupName',
    width: 180,
  },
  {
     title: '下发状态',
     key: 'status',
     width: 160,
  },
  {
    title: '下发时间',
    key: 'rlsTime',
    width: 160,
 },

];
